<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
</head>
<div th:fragment="order-left-menu-nav" id="a_nav">
    <ul>
        <li>账户设置</li>
       <!--  <li><a th:href="@{/personal/loadPersonal}">个人信息</a></li> -->
        <li><a th:href="@{/address/index?aNum=0}">收货地址</a></li>
        <li><a th:href="@{/account/loadAccountSecurity?aNum=1}">账户安全</a></li>
        <li><a th:href="@{/bankcard/loadBankCard?aNum=2}">我的银行卡</a></li>
    </ul>
    <ul>
        <li>资产中心</li>
       <!--  <li><a href="">我的余额</a></li> -->
        <li><a th:href="@{/score/list?aNum=3}">我的积分</a></li>
    </ul>
    <ul>
        <li>订单中心</li>
        <li><a th:href="@{/shopping/order/findOnlineOrders?aNum=4}">线上订单</a></li>
        <li><a th:href="@{/shopping/order/findUnlineOrders?aNum=5}">线下订单</a></li>
    </ul>
    <ul>
        <li>推广中心</li>
        <!-- <li><a href="">我是推荐人</a></li>
        <li><a href="">我是推广师</a></li> -->
        <li><a th:href="@{/personal/promotion/loadPromotionAauth?aNum=6}">申请推广师</a></li>
    </ul>
</div>

<div th:fragment="order-top-search-nav">
    <th:block th:each="memberData,memberDataStat:${memberList}">
        <!-- 顶部导航条开始 -->
        <div class="puhuishopping_common_titlelink" id="puhuishopping_common_titlelink">
            <!-- 导航条左部 -->
            <div class="centerbody">
                <div class="title_left">
                    <a th:href="@{/}" class="puhuishopping_common_city" id="puhuishopping_common_city">返回普惠商城首页</a>
                    <!-- <div class='citylist' id='citylist'></div> -->
                </div>
                <!-- 导航条右部 -->
                <div class="title_right">
                    <!-- 已登录 -->
                    <th:block th:if="${not #lists.isEmpty(memberData)}">
                        您好&nbsp;&nbsp;,&nbsp;<a style="cursor: pointer" th:href="@{/shopping/order/findOnlineOrders}"
                                                th:text="${memberData.memberName}?${memberData.memberName}:${memberData.memberPhone}" class="puhuishopping_common_login"></a>
                        <a onclick="logoutUser();" class="puhuishopping_common_hyzc">[退出]</a>
                        <a th:href="@{/shopping/order/findOnlineOrders}" class="puhuishopping_common_wddd">我的订单</a>
                        <a href="" class="puhuishopping_common_ydsc">移动商城</a>
                        <div style="clear: both"></div>
                    </th:block>
                    <!-- 未登录 -->
                    <th:block th:if="${#lists.isEmpty(memberData)}">
                        您好&nbsp;&nbsp;,&nbsp;<a th:href="@{/member/loadlogin}" class="puhuishopping_common_login" id="puhuishopping_common_login">请登录</a>
                        <a th:href="@{/member/loadRegister}" class="puhuishopping_common_hyzc">会员注册</a>
                        <a th:href="@{/member/loadlogin}" class="puhuishopping_common_wddd">我的订单</a>
                        <div style="clear: both"></div>
                    </th:block>
                </div>
            </div>
        </div>
        <!-- 顶部导航条结束 -->
        <!-- 顶部搜索栏部分开始 -->
        <div class="personal_box_tit">
            <div class="centerbody">
                <a th:href="@{/}"><img th:src="@{/images/普惠logo最终版白色.png}" alt="" class="logo3"></a>
                <!-- 已登录 -->
                <th:block th:if="${not #lists.isEmpty(memberData)}">
                    <a th:href="@{/personal/loadPersonal}" class="personal_box_tit_link">会员首页</a>
                    <a th:href="@{/score/list}" class="personal_box_tit_link">我的积分</a>
                    <div class="my_shoplist_box" style="visibility: hidden;">
                        <input type="button" class="my_shoplist" id="my_shoplist" value="我的购物车">
                        <img th:src="@{/images/0.png}" alt="" class="num_ico">
                    </div>
                </th:block>
                <!-- 未登录 -->
                <th:block th:if="${#lists.isEmpty(memberData)}">
                    <a th:href="@{/member/loadlogin}" class="personal_box_tit_link">会员首页</a>
                    <a th:href="@{/member/loadlogin}" class="personal_box_tit_link">我的积分</a>
                    <a th:href="@{/member/loadlogin}" class="personal_box_tit_link">我的余额</a>
                    <div class="my_shoplist_box" style="visibility: hidden;">
                        <input type="button" class="my_shoplist" id="my_shoplist" value="我的购物车">
                        <img src="../../images/0.png" alt="" class="num_ico">
                    </div>
                </th:block>
                <div class="searchbox" style="visibility: hidden;">
                    <input type="text" class="searchtxt" placeholder="请输入搜索的内容"><input type="button" class="searchbtn" value="搜索">
                </div>

                <div style="clear: both"></div>
            </div>
        </div>
    </th:block>
    <script th:inline="javascript">
        //退出
        var logoutUser = function () {
            layer.confirm('是否退出？', {
                btn: ['是', '否'] //按钮
            }, function () {
                window.location.href = "/member/logout";
            });

        };
    </script>
</div>
